# to use method names like ruby, do this:
require 'rbof_rubycase'

# for example:
#   getFrameRate => frame_rate
#   bLoaded => loaded?
#   setVerticalSync => vertical_sync=

class App < OF::SimpleApp
  include OF
  
  def setup
    no_fill
    background 0, 0, 0
    vertical_sync = true
  end

  def draw
    color 0xffffff
    draw_bitmap_string "click to see all ruby_case", 20, 40
  end
  
  def mouse_pressed(x, y, button)
    load 'runme.rb'
  end
end

OF.setup_open_gl 400, 400, OF::WINDOW
OF.run_app App.new